/*
 * Copyright (c) from 2000 to 2009
 * 
 * Network and System Laboratory 
 * Department of Computer Science 
 * College of Computer Science
 * National Chiao Tung University, Taiwan
 * All Rights Reserved.
 * 
 * This source code file is part of the NCTUns 6.0 network simulator.
 *
 * Permission to use, copy, modify, and distribute this software and
 * its documentation is hereby granted (excluding for commercial or
 * for-profit use), provided that both the copyright notice and this
 * permission notice appear in all copies of the software, derivative
 * works, or modified versions, and any portions thereof, and that
 * both notices appear in supporting documentation, and that credit
 * is given to National Chiao Tung University, Taiwan in all publications 
 * reporting on direct or indirect use of this code or its derivatives.
 *
 * National Chiao Tung University, Taiwan makes no representations 
 * about the suitability of this software for any purpose. It is provided 
 * "AS IS" without express or implied warranty.
 *
 * A Web site containing the latest NCTUns 6.0 network simulator software 
 * and its documentations is set up at http://NSL.csie.nctu.edu.tw/nctuns.html.
 *
 * Project Chief-Technology-Officer
 * 
 * Prof. Shie-Yuan Wang <shieyuan@csie.nctu.edu.tw>
 * National Chiao Tung University, Taiwan
 *
 * 09/01/2009
 */

#ifndef __NCTUNS_ANTENNA_PATTERN_H__
#define __NCTUNS_ANTENNA_PATTERN_H__

// Antenna gain pattern for 3dB beamwidth = 60 degrees
double gain60[] = {
	10.01294452, 10.00975522, 10.00018706, 9.98423924, 9.96191042,
	9.93319875, 9.89810182, 9.85661667, 9.80873981, 9.75446718,
	9.69379418, 9.62671561, 9.55322571, 9.47331814, 9.38698596,
	9.29422163, 9.19501698, 9.08936326, 8.97725106, 8.85867035,
	8.73361046, 8.60206008, 8.46400726, 8.31943940, 8.16834327,
	8.01070498, 7.84651005, 7.67574336, 7.49838921, 7.31443136,
	7.12385298, 6.92663681, 6.72276509, 6.51221970, 6.29498217,
	6.07103380, 5.84035573, 5.60292903, 5.35873486, 5.10775455,
	4.84996979, 4.58536278, 4.31391642, 4.03561454, 3.75044209,
	3.45838540, 3.15943247, 2.85357323, 2.54079984, 2.22110704,
	1.89449243, 1.56095682, 1.22050454, 0.87314373, 0.51888660,
	0.15774961, -0.21024640, -0.58507627, -0.96671075, -1.35511688,
	-1.75025882, -2.15209902, -2.56059997, -2.97572664, -3.39744986,
	-3.82575085, -4.26062725, -4.70210113, -5.15022937, -5.60511737,
	-6.06693667, -6.53594808, -7.01253175, -7.49722645, -7.99078140,
	-8.49422510, -9.00895785, -9.53687808, -10.08055809, -10.64349440,
	-11.23047450, -11.84813303, -12.50583056, -13.21711414, -14.00230068,
	-14.89342343, -15.94475128, -17.25871164, -19.06608410, -22.10439603,
	-166.66272129, -52.10439603, -49.06608410, -47.25871164, -45.94475128,
	-44.89342343, -44.00230068, -43.21711414, -42.50583056, -41.84813303,
	-41.23047450, -40.64349440, -40.08055809, -39.53687808, -39.00895785,
	-38.49422510, -37.99078140, -37.49722645, -37.01253175, -36.53594808,
	-36.06693667, -35.60511737, -35.15022937, -34.70210113, -34.26062725,
	-33.82575085, -33.39744986, -32.97572664, -32.56059997, -32.15209902,
	-31.75025882, -31.35511688, -30.96671075, -30.58507627, -30.21024640,
	-29.84225039, -29.48111340, -29.12685627, -28.77949546, -28.43904318,
	-28.10550757, -27.77889296, -27.45920016, -27.14642677, -26.84056753,
	-26.54161460, -26.24955791, -25.96438546, -25.68608358, -25.41463722,
	-25.15003021, -24.89224545, -24.64126514, -24.39707097, -24.15964427,
	-23.92896620, -23.70501783, -23.48778030, -23.27723491, -23.07336319,
	-22.87614702, -22.68556864, -22.50161079, -22.32425664, -22.15348995,
	-21.98929502, -21.83165673, -21.68056060, -21.53599274, -21.39793992,
	-21.26638954, -21.14132965, -21.02274894, -20.91063674, -20.80498302,
	-20.70577837, -20.61301404, -20.52668186, -20.44677429, -20.37328439,
	-20.30620582, -20.24553282, -20.19126019, -20.14338333, -20.10189818,
	-20.06680125, -20.03808958, -20.01576076, -19.99981294, -19.99024478,
	-19.98705548, -19.99024478, -19.99981294, -20.01576076, -20.03808958,
	-20.06680125, -20.10189818, -20.14338333, -20.19126019, -20.24553282,
	-20.30620582, -20.37328439, -20.44677429, -20.52668186, -20.61301404,
	-20.70577837, -20.80498302, -20.91063674, -21.02274894, -21.14132965,
	-21.26638954, -21.39793992, -21.53599274, -21.68056060, -21.83165673,
	-21.98929502, -22.15348995, -22.32425664, -22.50161079, -22.68556864,
	-22.87614702, -23.07336319, -23.27723491, -23.48778030, -23.70501783,
	-23.92896620, -24.15964427, -24.39707097, -24.64126514, -24.89224545,
	-25.15003021, -25.41463722, -25.68608358, -25.96438546, -26.24955791,
	-26.54161460, -26.84056753, -27.14642677, -27.45920016, -27.77889296,
	-28.10550757, -28.43904318, -28.77949546, -29.12685627, -29.48111340,
	-29.84225039, -30.21024640, -30.58507627, -30.96671075, -31.35511688,
	-31.75025882, -32.15209902, -32.56059997, -32.97572664, -33.39744986,
	-33.82575085, -34.26062725, -34.70210113, -35.15022937, -35.60511737,
	-36.06693667, -36.53594808, -37.01253175, -37.49722645, -37.99078140,
	-38.49422510, -39.00895785, -39.53687808, -40.08055809, -40.64349440,
	-41.23047450, -41.84813303, -42.50583056, -43.21711414, -44.00230068,
	-44.89342343, -45.94475128, -47.25871164, -49.06608410, -52.10439603,
	-166.66272129, -22.10439603, -19.06608410, -17.25871164 , -15.94475128,
	-14.89342343, -14.00230068, -13.21711414, -12.50583056, -11.84813303,
	-11.23047450, -10.64349440, -10.08055809, -9.53687808, -9.00895785,
	-8.49422510, -7.99078140, -7.49722645, -7.01253175, -6.53594808,
	-6.06693667, -5.60511737, -5.15022937, -4.70210113, -4.26062725,
	-3.82575085, -3.39744986, -2.97572664, -2.56059997, -2.15209902,
	-1.75025882, -1.35511688, -0.96671075, -0.58507627, -0.21024640,
	0.15774961, 0.51888660, 0.87314373, 1.22050454, 1.56095682,
	1.89449243, 2.22110704, 2.54079984, 2.85357323, 3.15943247,
	3.45838540, 3.75044209, 4.03561454, 4.31391642, 4.58536278,
	4.84996979, 5.10775455, 5.35873486, 5.60292903, 5.84035573,
	6.07103380, 6.29498217, 6.51221970, 6.72276509, 6.92663681,
	7.12385298, 7.31443136, 7.49838921, 7.67574336, 7.84651005,
	8.01070498, 8.16834327, 8.31943940, 8.46400726, 8.60206008,
	8.73361046, 8.85867035, 8.97725106, 9.08936326, 9.19501698,
	9.29422163, 9.38698596, 9.47331814, 9.55322571, 9.62671561,
	9.69379418, 9.75446718, 9.80873981, 9.85661667, 9.89810182,
	9.93319875, 9.96191042, 9.98423924, 10.00018706, 10.00975522
};

// Antenna gain pattern for 3dB beamwidth = 120 degrees
double gain120[] = {
	5.88539066, 5.88472915, 5.88274425, 5.87943472, 5.87479855,
	5.86883292, 5.86153415, 5.85289775, 5.84291841, 5.83158993,
	5.81890525, 5.80485642, 5.78943460, 5.77262998, 5.75443184,
	5.73482844, 5.71380703, 5.69135381, 5.66745391, 5.64209131,
	5.61524882, 5.58690803, 5.55704926, 5.52565148, 5.49269228,
	5.45814777, 5.42199253, 5.38419950, 5.34473993, 5.30358324,
	5.26069697, 5.21604661, 5.16959549, 5.12130468, 5.07113279,
	5.01903585, 4.96496710, 4.90887682, 4.85071210, 4.79041660,
	4.72793032, 4.66318929, 4.59612524, 4.52666529, 4.45473156,
	4.38024068, 4.30310339, 4.22322396, 4.14049961, 4.05481982,
	3.96606562, 3.87410869, 3.77881044, 3.68002091, 3.57757751,
	3.47130367, 3.36100717, 3.24647830, 3.12748773, 3.00378402,
	2.87509070, 2.74110295, 2.60148357, 2.45585830, 2.30381027,
	2.14487325, 1.97852366, 1.80417077, 1.62114483, 1.42868227,
	1.22590750, 1.01180983, 0.78521430, 0.54474406, 0.28877141,
	0.01535296, -0.27785758, -0.59372901, -0.93582024, -1.30862089,
	-1.71790704, -2.17128493, -2.67905630, -3.25566463, -3.92226369,
	-4.71164926, -5.67876416, -6.92660771, -8.68641770, -11.69605616,
	-156.24480078, -26.69605616, -23.68641770, -21.92660771, -20.67876416,
	-19.71164926, -18.92226369, -18.25566463, -17.67905630, -17.17128493,
	-16.71790704, -16.30862089, -15.93582024, -15.59372901, -15.27785758,
	-14.98464704, -14.71122859, -14.45525594, -14.21478570, -13.98819017,
	-13.77409250, -13.57131773, -13.37885517, -13.19582923, -13.02147634,
	-12.85512675, -12.69618973, -12.54414170, -12.39851643, -12.25889705,
	-12.12490930, -11.99621598, -11.87251227, -11.75352170, -11.63899283,
	-11.52869633, -11.42242249, -11.31997909, -11.22118956, -11.12589131,
	-11.03393438, -10.94518018, -10.85950039, -10.77677604, -10.69689661,
	-10.61975932, -10.54526844, -10.47333471, -10.40387476, -10.33681071,
	-10.27206968, -10.20958340, -10.14928790, -10.09112318, -10.03503290,
	-9.98096415, -9.92886721, -9.87869532, -9.83040451, -9.78395339,
	-9.73930303, -9.69641676, -9.65526007, -9.61580050, -9.57800747,
	-9.54185223, -9.50730772, -9.47434852, -9.44295074, -9.41309197,
	-9.38475118, -9.35790869, -9.33254609, -9.30864619, -9.28619297,
	-9.26517156, -9.24556816, -9.22737002, -9.21056540, -9.19514358,
	-9.18109475, -9.16841007, -9.15708159, -9.14710225, -9.13846585,
	-9.13116708, -9.12520145, -9.12056528, -9.11725575, -9.11527085,
	-9.11460934, -9.11527085, -9.11725575, -9.12056528, -9.12520145,
	-9.13116708, -9.13846585, -9.14710225, -9.15708159, -9.16841007,
	-9.18109475, -9.19514358, -9.21056540, -9.22737002, -9.24556816,
	-9.26517156, -9.28619297, -9.30864619, -9.33254609, -9.35790869,
	-9.38475118, -9.41309197, -9.44295074, -9.47434852, -9.50730772,
	-9.54185223, -9.57800747, -9.61580050, -9.65526007, -9.69641676,
	-9.73930303, -9.78395339, -9.83040451, -9.87869532, -9.92886721,
	-9.98096415, -10.03503290, -10.09112318, -10.14928790, -10.20958340,
	-10.27206968, -10.33681071, -10.40387476, -10.47333471, -10.54526844,
	-10.61975932, -10.69689661, -10.77677604, -10.85950039, -10.94518018,
	-11.03393438, -11.12589131, -11.22118956, -11.31997909, -11.42242249,
	-11.52869633, -11.63899283, -11.75352170, -11.87251227, -11.99621598,
	-12.12490930, -12.25889705, -12.39851643, -12.54414170, -12.69618973,
	-12.85512675, -13.02147634, -13.19582923, -13.37885517, -13.57131773,
	-13.77409250, -13.98819017, -14.21478570, -14.45525594, -14.71122859,
	-14.98464704, -15.27785758, -15.59372901, -15.93582024, -16.30862089,
	-16.71790704, -17.17128493, -17.67905630, -18.25566463, -18.92226369,
	-19.71164926, -20.67876416, -21.92660771, -23.68641770, -26.69605616,
	-156.24480078, -11.69605616, -8.68641770, -6.92660771, -5.67876416,
	-4.71164926, -3.92226369, -3.25566463, -2.67905630, -2.17128493,
	-1.71790704, -1.30862089, -0.93582024, -0.59372901, -0.27785758,
	0.01535296, 0.28877141, 0.54474406, 0.78521430, 1.01180983,
	1.22590750, 1.42868227, 1.62114483, 1.80417077, 1.97852366,
	2.14487325, 2.30381027, 2.45585830, 2.60148357, 2.74110295,
	2.87509070, 3.00378402, 3.12748773, 3.24647830, 3.36100717,
	3.47130367, 3.57757751, 3.68002091, 3.77881044, 3.87410869,
	3.96606562, 4.05481982, 4.14049961, 4.22322396, 4.30310339,
	4.38024068, 4.45473156, 4.52666529, 4.59612524, 4.66318929,
	4.72793032, 4.79041660, 4.85071210, 4.90887682, 4.96496710,
	5.01903585, 5.07113279, 5.12130468, 5.16959549, 5.21604661,
	5.26069697, 5.30358324, 5.34473993, 5.38419950, 5.42199253,
	5.45814777, 5.49269228, 5.52565148, 5.55704926, 5.58690803,
	5.61524882, 5.64209131, 5.66745391, 5.69135381, 5.71380703,
	5.73482844, 5.75443184, 5.77262998, 5.78943460, 5.80485642,
	5.81890525, 5.83158993, 5.84291841, 5.85289775, 5.86153415,
	5.86883292, 5.87479855, 5.87943472, 5.88274425, 5.88472915
};

#endif /* __NCTUNS_ANTENNA_PATTERN_H__ */
